package lab02.test15;

/**
 * Created by V555 on 2017/10/24.
 */
public class Test {
    public static void main(String[] args) {
        double rental;
        Graduate graduate=new Graduate();
        graduate.name="zhangsan";
        graduate.fee=5000;
        graduate.pay=2000;
        if ((graduate.getPay()-graduate.getFee()>2000))
            System.out.println("You income is enough！");
        else System.out.println("You  need a loan!");
    }
}
